<?php


	
	$mysqli=new mysqli('localhost','me77','taktaz','ntz') or die ("Connetion error!");


	$title=$_POST['title'];
	$quantity=$_POST['quantity'];
	$description=$_POST['description'];
	$req=$_POST['req'];
	$deadline=$_POST['deadline'];
	$category=$_POST['category'];


	

	$query="insert into jobs(title,quantity,description,req,category,deadline) values('$title','$quantity','$description','$req ','$category','$deadline')";
	
	$res=$mysqli->query($query);
	if ($res) {
		
		header('location:adminpanel.php?jq=ok');
	}

	else{
	
		header('location:adminpanel.php?jq=nok');

	}
	
	

?>